package com.ssm.user.designPattern.strategyPattern.easy;

public class StrategyPatternDemo {
    public static void main(String[] args) {
        Context context = new Context(new OperationAdd());
        System.out.println("10 + 5 = " + context.executeStrategy(10, 5));

        Context context1 = new Context(new OperationMul());
        System.out.println("10 * 5 = " + context1.executeStrategy(10, 5));
    }
}
